#include <iostream>
#include <pthread.h>
using namespace std;
void input()
{
    while(true)
    {
        cout << "进来了" << endl;
        int a = 0;
        cin >> a;
    }
}
void print()
{
    while(true)
        cout << "dasdasda" << endl;
}
void* start(void* args)
{
    
    while (true)
    {
        input();
        print();
    }
    return nullptr;
}
int main()
{
    pthread_t tid, ttid;
    pthread_create(&tid, nullptr, start, nullptr);
    
    pthread_create(&ttid, nullptr, start, nullptr);
    return 0;
}